{% from 'macros.html' import form as form_macro %}
{% from 'cart_product/macros.html' import cart_product as cart_product_macro %}

{% extends "base.html" %}

{% block title %}
<title>{{ config['SITE_NAME'] }} - 订单详情</title>
{% endblock %}

{% block body %}
<div class="form w-50 mx-auto my-5">
  <h5>订单详情</h5>

  <div class="my-3">
    {% for order_product in order['order_products'] %}
    {{ cart_product_macro(order_product) }}
    {% endfor %}
  </div>

  {{ form_macro(form) }}
</div>
{% endblock %}